/*
 * FileName: CompressImgsController.java
 *
 */
package com.mrc.ak.showMan.controller;

import javax.servlet.http.HttpServletRequest;

import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Controller;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.ResponseBody;

import com.mrc.ak.showMan.service.ShowManService;

/**
 * <p>
 * Description: 批量压缩图片
 * </p>
 *
 * @author Mrc
 * @version 4.1

 * <p>
 * History: 
 *
 * Date                     Author         Version     Description
 * ---------------------------------------------------------------------------------
 * 2017-1-19 下午5:05:56          Mrc        4.1         To create
 * </p>
 *
 * @since 
 * @see     
 */
@Controller
public class CompressImgsController {

    @Autowired
    private ShowManService showManService;

    /**
     * 压缩所有照片
     * @param request
     */
    @ResponseBody
    @RequestMapping(value = "/utils/compress.do")
    public void compress(HttpServletRequest request) {
        showManService.compress();
    }
}
